import 'package:flutter/material.dart';

class MainScreenState extends ChangeNotifier {
  MainScreenState(this.pageController);

  int currentIndex = 0;
  final PageController pageController;

  void changeIndex(int index) {
    currentIndex = index;
    pageController.jumpToPage(index);
    notifyListeners();
  }
}